
package cn.org.chiss.rhin._2015.base.terminology;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>equivalencePrimitive的 Java 类。
 *
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <pre>
 * &lt;simpleType name="equivalencePrimitive"&gt;
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
 *     &lt;enumeration value="Equivalent"/&gt;
 *     &lt;enumeration value="Equal"/&gt;
 *     &lt;enumeration value="Wider"/&gt;
 *     &lt;enumeration value="Subsumes"/&gt;
 *     &lt;enumeration value="Narrower"/&gt;
 *     &lt;enumeration value="Spechializes"/&gt;
 *     &lt;enumeration value="Inexact"/&gt;
 *     &lt;enumeration value="UnMatched"/&gt;
 *   &lt;/restriction&gt;
 * &lt;/simpleType&gt;
 * </pre>
 *
 */
@XmlType(name = "equivalencePrimitive")
@XmlEnum
public enum EquivalencePrimitive {

    @XmlEnumValue("Equivalent")
    EQUIVALENT("Equivalent"),
    @XmlEnumValue("Equal")
    EQUAL("Equal"),
    @XmlEnumValue("Wider")
    WIDER("Wider"),
    @XmlEnumValue("Subsumes")
    SUBSUMES("Subsumes"),
    @XmlEnumValue("Narrower")
    NARROWER("Narrower"),
    @XmlEnumValue("Spechializes")
    SPECHIALIZES("Spechializes"),
    @XmlEnumValue("Inexact")
    INEXACT("Inexact"),
    @XmlEnumValue("UnMatched")
    UN_MATCHED("UnMatched");
    private final String value;

    EquivalencePrimitive(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static EquivalencePrimitive fromValue(String v) {
        for (EquivalencePrimitive c: EquivalencePrimitive.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
